//用户api
class api {
    //构造方法
    constructor({ curl }) {
        this.curl = curl
    }
    // https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.G5qB56&treeId=385&articleId=106816&docType=1#s5
    async simplelist(param) {
        return await this.curl('/user/simplelist', param);
    }
    // https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.G5qB56&treeId=385&articleId=106816&docType=1#s6
    async list(param) {
        return await this.curl('/user/list', param);
    }
    //https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7386797.0.0.nTmEmV&source=search&treeId=370&articleId=104969&docType=1
    async getuserinfo(param) {
        return await this.curl('/user/getuserinfo', param)
    }
}

module.exports = api